package com.qianfeng.teachdemo.Dao;

import com.qianfeng.teachdemo.Dao.DaoImpl.UserDaoImpl;
import com.qianfeng.teachdemo.bean.AppFree;

/**
 * @ClassName: com.qianfeng.teachdemo.Dao
 * @作 用:
 * @author: zhangwei
 * @data: 14/11/11 下午5:02
 * @version: version 1.0
 */
public class DaoFactory {

    private static AppFreeDao appFreeDao;
    private static UserDao userDao;

    public static UserDao getUserDao() {
        if (userDao == null) {
            userDao = new UserDaoImpl();
        }
        return userDao;

    }


    public static AppFreeDao getAppFreeDao() {
        return appFreeDao;
    }


}
